package com.wss.merchant.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor         //全参构造
@NoArgsConstructor          //空参构造
public class CommonResult<T> {
    //状态码
    private Integer code;
    //提示信息
    private String message;
    //返回主体
    private T data;

    public CommonResult(Integer code ,String message){
        this(code,message,null);
    }
}
